package com.lazily.exception_;


/**
 * @Author: GZQ
 * @date: 2025/2/22 23:16
 * @description: 数字格式不正确异常演示
 */

public class NumberFormatException_ {
	public static void main(String[] args) {
		String name = "小仙女";
		// 将 String 转成 int
		int num = Integer.parseInt(name);// 抛出 NumberFormatException
		System.out.println(num);
	}
}
